<template>
	<div id="headder">
		<mt-header :title="title">
			<router-link to="/" slot="left">
				<mt-button v-if="title != '登录'" class="iconfont icon-fanhui"></mt-button>
			</router-link>
			<mt-button v-if="title == '我的信息'" slot="right">保存</mt-button>
		</mt-header>
	</div>
</template>

<script>
	export default {
		name: 'headder',
		data(){
			return{
				title: this.$route.query.title   //刷新才可获取到
			}
		}
	}
</script>

<style>
	.mint-header{
		background-color: #fff;
		box-shadow: .02rem .02rem 0 #cdcdcd;
		color: #333;
		padding-right: .4rem;
		padding-left: .3rem;
	}
	.mint-header-button{
		-webkit-box-flex: .2;
		flex: .2
	}
	.mint-header-title,.mint-button-text{
		font-size: .34rem;
	}
	.mint-header-title{
		text-align: left;
	}
</style>